﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Distributionrs.aspx.cs" Inherits="lcs.Web.RecoveryScrap.Distributionrs" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
      <link href="/style.css" type="text/css" rel="stylesheet" />
     <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../Scripts/JsTools.js" type="text/javascript"></script>
    <style type="text/css">
        td { font-size: 9pt}
        a { color:Blue; text-decoration: none}
        body{ font-size:9pt;}
     
.btn {
    background-image: url('../Images/btn.gif');
    width: 62px;
    color: #FFFFFF;
    font-weight: bold;
    border-width: 0px;
            height: 17px;
        }
     </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div>
           项目编号：            <asp:TextBox ID="txt_proid" runat="server"></asp:TextBox>
             项目名称：
        <asp:TextBox ID="txt_proName" runat="server"></asp:TextBox>
            &nbsp;<asp:Button ID="btn_sel" runat="server" OnClick="btn_sel_Click" Text="查询"  CssClass="btn"/>
        </div>
        <div>
            </br>
        </div>
        <div>


    <div style=" text-align:center">
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            Width="1600px" onrowcommand="GridView1_RowCommand" AllowPaging="True" 
            onpageindexchanging="GridView1_PageIndexChanging" PageSize="20" 
            onrowdatabound="GridView1_RowDataBound">
            <Columns>
                <asp:TemplateField HeaderText="操作">
                    <ItemTemplate>
                        <asp:LinkButton ID="lbn_submit" runat="server" 
                            CommandArgument='<%# Bind("rsmid") %>' CommandName="lbn_submit"  OnClientClick="return confirm('此回收报或废数量确定要提交吗？')">提交</asp:LinkButton>
                        <asp:Label ID="lbl_rsmid" runat="server" Text='<%# Bind("rsmid") %>' 
                            Visible="False"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="是否报废">
                    <ItemTemplate>
                        <asp:RadioButton ID="rdo_y" runat="server" GroupName="rdo" Text="是" ValidationGroup="rdo" />
                        <asp:RadioButton ID="rdo_n" runat="server" Checked="True" GroupName="rdo" Text="否" ValidationGroup="rdo" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="回收或报废时间">
                    <ItemTemplate>
                        <asp:TextBox ID="txt_recoveryOrScrapTime" runat="server" Width="100px" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',readOnly:true})"></asp:TextBox>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="回收数量">
                    <ItemTemplate>
                        <asp:TextBox ID="txt_nums" runat="server" Width="50px"></asp:TextBox>
                        <br />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="material" HeaderText="物料描述" />
                <asp:BoundField DataField="projectName" HeaderText="项目名称" />
                <asp:BoundField DataField="nums" HeaderText="回收或报废数量" />
            </Columns>
            <PagerStyle CssClass="mypager" />
        </asp:GridView>
    </div>


        </div>
    </div>
    </form>
</body>
</html>
